<?php

namespace App\Http\Controllers\Admin\Version;

use App\Http\Controllers\AdminBaseController;
use App\Http\Requests\Admin\Version\VersionRequest;
use App\Services\Admin\Version\VersionService;

class VersionController extends AdminBaseController
{
    protected $services = null;

    public function __construct(VersionService $services, VersionRequest $request)
    {
        parent::__construct();

        $this->services = $services;
        $this->request = $request;
    }

    public function getVersion()
    {
        $result = $this->services->getVersion();
        return $this->success($result);
    }

    public function getUpdatePackage()
    {
        $result = $this->services->getUpdatePackage();
        return $this->success($result);
    }
}
